package jjn.effective_java.chapter6.item35;

/**
 * @author Jiang Jining
 * @since 2023-04-27 22:35
 */
public enum EnsembleV2 {
    SOLO(1), DUET(2), TRIO(3), QUARTET(4), QUINTET(5),
    SEXTET(6), SEPTET(7), OCTET(8), NONET(9), DECTET(10);
    
    private final int numberOfMusicians;
    
    EnsembleV2(final int numberOfMusicians) {
        this.numberOfMusicians = numberOfMusicians;
    }
    
    public int numberOfMusicians() {
        return numberOfMusicians;
    }
    
}
